C. The code compiles, gets deployed, and runs without any issue
D. The code compiles with warnings as the version being
unavailable, but gets deployed and run without issue
Q14: What does ^0.4.0 mean in the following code?
pragma solidity ^0.4.0;
contract VersionCheckSample {
}
A. The code would compile only with the compiler version 0.4.0
B. The code might not compile with any compiler version less
than 0.4.0
C. The code might not compile with any compiler version less
than 0.4.0 and nor with any version equal to or greater than
0.5.*
D. None of these
Q15: What happens when inside a Solidity file, the elements are not
in the right order?
A. The code might compile, get deployed, and run with warnings
B. The code would definitely not compile
C. The code would compile but definitely not get deployed
D. The code would get deployed but would definitely break while
running
Q16: What is incorrect regarding the interfaces in Solidity?
A. An interface can declare a public function
B. An interface can inherit another interface
C. An interface can declare state variables
D. All of the above
Q17: What is true regarding the contract/contracts in a Solidity file?
A. A Solidity file might have just one Contract
B. A Solidity file might have many contracts